home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / DEV / C-H / CBitMap.cpt / BitMap ƒ / offScreenBitMap.h < prev    next >
Text File  |  1990-11-21  |  784b  |  28 lines

  1. /*
  2.  *    offScreenBitMap.h        Copyright © 1990 Brigham Stevens
  3.  *    -----------------
  4.  *
  5.  *    This file contains the prototypes for working with off screen bitmaps.
  6.  *
  7.  *    NewBitMap            -    Allocates an off screen BitMap from a given Rect.
  8.  *    CalcOffScreen        -    Calculates fields of a BitMap for a given Rect.
  9.  *    FreeBitMap            -    Frees allocated memory in an off screen BitMap.
  10.  *    DrawBitMap            -    Draw a BitMap in the current GrafPort.
  11.  *    LoadPicture            -    Makes an off screen BitMap from a PICT resource.
  12.  *
  13.  */
  14.  
  15. #define _offScreenBitMap_
  16. #ifndef    NIL
  17. #define    NIL 0L
  18. #endif
  19.  
  20. void NewBitMap(Rect *frame,BitMap *theMap);
  21.  
  22. void CalcOffScreen(Rect *frame,int *needed,int *rows);
  23.  
  24. void FreeBitMap(BitMap *Bits);
  25.  
  26. void DrawBitMap(BitMap *bits,Rect *frame,int    mode);
  27.  
  28. void LoadPicture(int resID,BitMap *theMap);